//
//  ChannelControlClient.h
//  gzline
//
//  Created by hsm on 3/26/13.
//
//

#import <Foundation/Foundation.h>
#import "DDXML.h"
#import "PokerNetEventhandler.h"

@interface PokerControlClient : NSObject<PokerNetEventHandlerDelegate>{
    NSMutableArray *netDataArray;
    NSMutableDictionary *remote_idDic;
    PokerNetEventHandler *netEventHandler;
    NSString *ctrlIP, *ctrlPort;
    NSString *c2sPingContent;
    
    int ping_time;
    BOOL isConnect;
    BOOL beginStudy;
    NSString *net_deviceName;
    BOOL isRemote;
    NSMutableDictionary *curIpList, *curSocketIpList;
}
@property(nonatomic, strong) NSString *net_deviceName;
@property(nonatomic, strong) NSString *c2sPingContent;
@property(nonatomic, strong) PokerNetEventHandler *netEventHandler;
@property(nonatomic, strong) NSString * ctrlIP,*ctrlPort;
@property(nonatomic, strong) NSMutableDictionary *curIpList, *curSocketIpList;
@property(nonatomic, assign) BOOL isRemote;
+(PokerControlClient*)share;
-(void)openStream;
-(void)startServer:(UInt16)port;
-(void)openImportStream ;
-(void) startCmd: (NSString *)cmd code:(NSString*)code;
-(void) startOnOff: (NSString *)cmd code:(NSString*)code;
-(void) startDelayOnOff: (NSString *)cmd code:(NSString*)code time:(NSString*)time;
-(void)sendArrayCmd:(NSArray*)array;
-(void)c2sPing;
-(void)stopc2sPing;
//购买筹码
-(void)cbuychip:(NSInteger)count;
@end
